<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>博客排行榜</title>
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/resource/css/avatar.css" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/resource/css/index2.css" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/resource/css/bootstrap.css" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/resource/css/blog_index.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/resource/js/common_index.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/resource/js/tracking.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/resource/js/blog_index.css">     
    
	
  </head>
  
<body>

 <jsp:include page="../inc/head_nav.jsp" />  
 
  <div class="blog_ad clearfix">
    
    </div>
 
<div class="rankList clearfix">
      <!--文章周排行-->
      <div class="ranking ranking_min">
        <h3 class="rank_t">文章周排行</h3>
        <ul class="ranking_c" >
        	<c:forEach items="${artListTop}" var="top" varStatus="s">
                    <li >   
                      <em>${s.index+1}.</em>
                        <label>
                            <a href="${pageContext.request.contextPath}/ArticleSer?tag=detail&&articleid=${top.articleId}" class="article_t" title="${top.articleTitle}">${top.articleTitle}</a><span class="article_span"><i class="fa fa-eye"></i>
                            <b>阅读量：${top.articleClick}</b></span>
                        </label>
                     </li>
 			 </c:forEach>
        </ul>
      </div>
      <!--博客周排行-->
      <div class="ranking ranking_min">
        <h3 class="rank_t">推荐文章</h3>
        <ul class="ranking_c">
        <c:forEach items="${artTop}" var="artTop" varStatus="s">
                        <li>                       
                               <em>${s.index+1}.</em>
                        <label class="blog_pad">
                        <a href="${pageContext.request.contextPath}/ArticleSer?tag=detail&&articleid=${artTop.articleId}"></a>
                            <a href="${pageContext.request.contextPath}/ArticleSer?tag=detail&&articleid=${artTop.articleId}" class="blog_a blog_a_top">${artTop.articleTitle}</a>
                            <span class="blog_span"><i class="fa fa-file-text-o"></i><b class="blog_b_margin"></b><i class="fa fa-eye"></i><b>${artTop.articleClick}</b></span>
                        </label>
                      </li>
               </c:forEach>         
        </ul>
      </div>
      <!--评论周排行-->
      <div class="ranking rank_blog ranking_min">
        <h3 class="rank_t">专家排行</h3>
        <ul class="ranking_c">
 <c:forEach items="${authorTop}" var="authorTop" varStatus="s">
                  <li>  <em>${s.index+1}.</em>
            <label class="blog_pad"><a href=""><img src="${pageContext.request.contextPath}${authorTop.user.userImgUrl}" alt="img" class="blog_img"></a>
                <a class="blog_a blog_a_top">${authorTop.user.userName}</a>
              <span class="blog_span"><i class="fa fa-comment-o"></i><b>${authorTop.articleCount}</b></span>
              <span class="blog_span"><i class="fa fa-comment-o"></i><b>${authorTop.articleView}</b></span>
            </label>
          </li>
          </c:forEach>
        </ul>
      </div>
     
       
<jsp:include page="../inc/footer_nav.jsp" />

 </body>

</html>
